class Remark {
  int remarkId;
  int score;
  String com;
  String time;
  int ioCount;
  int anCount;
  int couId;
  String nickName;
  String photo;

  Remark(
      {this.remarkId,
        this.score,
        this.com,
        this.time,
        this.ioCount,
        this.anCount,
        this.couId,
        this.nickName,
        this.photo});

  Remark.fromJson(Map<String, dynamic> json) {
    remarkId = json['remarkId'];
    score = json['score'];
    com = json['com'];
    time = json['time'];
    ioCount = json['ioCount'];
    anCount = json['anCount'];
    couId = json['couId'];
    nickName = json['nickName'];
    photo = json['photo'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['remarkId'] = this.remarkId;
    data['score'] = this.score;
    data['com'] = this.com;
    data['time'] = this.time;
    data['ioCount'] = this.ioCount;
    data['anCount'] = this.anCount;
    data['couId'] = this.couId;
    data['nickName'] = this.nickName;
    data['photo'] = this.photo;
    return data;
  }
}
class RemarkList {

  List<Remark> list;
  RemarkList(this.list);
  factory RemarkList.formJson(List<dynamic> list){
    return RemarkList(
        list.map((item)=>Remark.fromJson((item))).toList()
    );
  }
}
